package cn.itsource.org.mapper;

import cn.itsource.org.domain.Department;
import cn.itsource.org.query.DepartmentQuery;
import org.apache.ibatis.annotations.Insert;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
public interface DepartMentMapper extends Mapper<Department> {

    List<Department> loadAll();

    List<Department> findByParams(DepartmentQuery query);

    List<Department> findPageByParams(DepartmentQuery query);

    Long findPageByParamsCount(DepartmentQuery query);

    void bartchDel(List<Long> ids);

    List<Department> findTreeDepartment();

    void save(Department dept);

    void update(Department dept);
}
